home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / misc / volume16 / nlmdl / patch1 < prev    next >
Encoding:
Internet Message Format  |  1991-01-19  |  6.5 KB

  1. From: arg@ccvr1.cc.ncsu.edu (Ron Gallant)
  2. Newsgroups: comp.sources.misc
  3. Subject: v16i074:  nlmdl - Estimate nonlinear statistical models, Patch1
  4. Message-ID: <1991Jan14.221655.28130@sparky.IMD.Sterling.COM>
  5. Date: 14 Jan 91 22:16:55 GMT
  6. Approved: kent@sparky.imd.sterling.com
  7. X-Checksum-Snefru: 40b5973d 98e51c7a 0c725c7f 3eaa008b
  8.  
  9. Submitted-by: arg@ccvr1.cc.ncsu.edu (Ron Gallant)
  10. Posting-number: Volume 16, Issue 74
  11. Archive-name: nlmdl/patch1
  12. Patch-To: nlmdl: Volume 16, Issue 63-68
  13.  
  14. This patch corrects factual and grammatical errors in the documentation
  15. to nlmdl.  It affects files README, nlmdl.h, and patchlevel.h.
  16.  
  17. #! /bin/sh
  18. # This is a shell archive.  Remove anything before this line, then unpack
  19. # it by saving it into a file and typing "sh file".  To overwrite existing
  20. # files, type "sh file -c".  You can also feed this as standard input via
  21. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  22. # will see the following message at the end:
  23. #        "End of archive 1 (of 1)."
  24. # Contents:  pch01 pch01README
  25. # Wrapped by arg@sparc on Sat Jan 12 10:55:37 1991
  26. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  27. if test -f 'pch01' -a "${1}" != "-c" ; then 
  28.   echo shar: Will not clobber existing file \"'pch01'\"
  29. else
  30. echo shar: Extracting \"'pch01'\" \(3711 characters\)
  31. sed "s/^X//" >'pch01' <<'END_OF_FILE'
  32. X------- patchlevel.h -------
  33. XPrereq: 0
  34. X*** ../nlmdl_ver_2.0_unpacked/patchlevel.h    Sat Jan 12 09:24:28 1991
  35. X--- patchlevel.h    Sat Jan 12 08:42:32 1991
  36. X***************
  37. X*** 25,30 ****
  38. X  
  39. X  ------------------------------------------------------------------------- */
  40. X  
  41. X! #define  PATCHLEVEL  0
  42. X  
  43. X  
  44. X--- 25,30 ----
  45. X  
  46. X  ------------------------------------------------------------------------- */
  47. X  
  48. X! #define  PATCHLEVEL  1
  49. X  
  50. X  
  51. X------- README -------
  52. X*** ../nlmdl_ver_2.0_unpacked/README    Sat Jan 12 09:24:19 1991
  53. X--- README    Sat Jan 12 08:20:34 1991
  54. X***************
  55. X*** 20,28 ****
  56. X  As distributed, the code is set up for use with GNU's 1.37 g++ compiler on a 
  57. X  Unix box.  To test the code using one of the examples, e.g. ch1eg1, cd to 
  58. X  ch1eg1 and type  make -f ../Makefile.  Each directory has a file detail.bak 
  59. X! created using  nlmdl > detail.bak that used for comparison.  For version 1.35 
  60. X! of g++, the #undef and #define for I/O style in usual.h will have to be set to 
  61. X! GNU.  The code hasn't been tested with other versions.  
  62. X  
  63. X  The code can also be used with Borland's Turbo C++ compiler.  To use Turbo C++, 
  64. X  permute the #undef and #define for compiler choice in usual.h, copy the 
  65. X--- 20,28 ----
  66. X  As distributed, the code is set up for use with GNU's 1.37 g++ compiler on a 
  67. X  Unix box.  To test the code using one of the examples, e.g. ch1eg1, cd to 
  68. X  ch1eg1 and type  make -f ../Makefile.  Each directory has a file detail.bak 
  69. X! created using  nlmdl > detail.bak that can be used for comparison.  For version 
  70. X! 1.35 of g++, the #undef and #define for I/O style in usual.h will have to be 
  71. X! set to GNU.  The code hasn't been tested with other versions.  
  72. X  
  73. X  The code can also be used with Borland's Turbo C++ compiler.  To use Turbo C++, 
  74. X  permute the #undef and #define for compiler choice in usual.h, copy the 
  75. X------- nlmdl.h -------
  76. X*** ../nlmdl_ver_2.0_unpacked/nlmdl.h    Sat Jan 12 09:24:34 1991
  77. X--- nlmdl.h    Sat Jan 12 09:05:14 1991
  78. X***************
  79. X*** 69,75 ****
  80. X  class model is declared in model.h which should match the following template:
  81. X  
  82. X     #include "status.h"
  83. X!    external status s;
  84. X  
  85. X     class model
  86. X     {   
  87. X--- 69,75 ----
  88. X  class model is declared in model.h which should match the following template:
  89. X  
  90. X     #include "status.h"
  91. X!    extern    status s;
  92. X  
  93. X     class model
  94. X     {   
  95. X***************
  96. X*** 91,97 ****
  97. X  
  98. X  For SUR, code the function Z as follows:
  99. X  
  100. X!    realmat model::Z(INTEGER t) { }
  101. X  
  102. X  In writing the class model, the relevant facts regarding program flow in 
  103. X  nlmdl.cc are as follows: 
  104. X--- 91,97 ----
  105. X  
  106. X  For SUR, code the function Z as follows:
  107. X  
  108. X!    void model::Z(INTEGER t) { }
  109. X  
  110. X  In writing the class model, the relevant facts regarding program flow in 
  111. X  nlmdl.cc are as follows: 
  112. X***************
  113. X*** 134,140 ****
  114. X         m.dele_t.resize(s.M,s.p);
  115. X         if (s.K > 0) m.Z_t.resize(s.K,1);
  116. X                            
  117. X!      and estimation proceeds using these settings and dimensions.  
  118. X  
  119. X    4. Finally, terminate() of class model is called; terminate() can read data, 
  120. X       write data, etc.  If terminate() returns 0 execution stops, otherwise 
  121. X--- 134,140 ----
  122. X         m.dele_t.resize(s.M,s.p);
  123. X         if (s.K > 0) m.Z_t.resize(s.K,1);
  124. X                            
  125. X!      Estimation proceeds using these settings and dimensions.  
  126. X  
  127. X    4. Finally, terminate() of class model is called; terminate() can read data, 
  128. X       write data, etc.  If terminate() returns 0 execution stops, otherwise 
  129. X***************
  130. X*** 161,167 ****
  131. X  #include "status.h"
  132. X  #include "model.h"
  133. X  
  134. X! #define  VERSION "2.0"
  135. X  
  136. X  #endif
  137. X  
  138. X--- 161,167 ----
  139. X  #include "status.h"
  140. X  #include "model.h"
  141. X  
  142. X! #define  VERSION "2.1"
  143. X  
  144. X  #endif
  145. X  
  146. END_OF_FILE
  147. if test 3711 -ne `wc -c <'pch01'`; then
  148.     echo shar: \"'pch01'\" unpacked with wrong size!
  149. fi
  150. # end of 'pch01'
  151. fi
  152. if test -f 'pch01README' -a "${1}" != "-c" ; then 
  153.   echo shar: Will not clobber existing file \"'pch01README'\"
  154. else
  155. echo shar: Extracting \"'pch01README'\" \(302 characters\)
  156. sed "s/^X//" >'pch01README' <<'END_OF_FILE'
  157. XIn the directory that contains patchlevel.h, nlmdl.h, and README do this:
  158. X
  159. Xpatch < pch01
  160. X
  161. XUse Larry Wall's <lwall@jpl-devvax.jpl.nasa.gov> patch program, available
  162. Xby ftp anonymous from sunic.sunet.se (130.237.216.2) in directory pub as 
  163. Xfile patch.tar.Z
  164. X
  165. XThis patch fixes errors in the documentation.
  166. END_OF_FILE
  167. if test 302 -ne `wc -c <'pch01README'`; then
  168.     echo shar: \"'pch01README'\" unpacked with wrong size!
  169. fi
  170. # end of 'pch01README'
  171. fi
  172. echo shar: End of archive 1 \(of 1\).
  173. cp /dev/null ark1isdone
  174. MISSING=""
  175. for I in 1 ; do
  176.     if test ! -f ark${I}isdone ; then
  177.     MISSING="${MISSING} ${I}"
  178.     fi
  179. done
  180. if test "${MISSING}" = "" ; then
  181.     echo You have the archive.
  182.     rm -f ark[1-9]isdone
  183. else
  184.     echo You still need to unpack the following archives:
  185.     echo "        " ${MISSING}
  186. fi
  187. ##  End of shell archive.
  188. exit 0
  189.  
  190. exit 0 # Just in case...
  191. -- 
  192. Kent Landfield                   INTERNET: kent@sparky.IMD.Sterling.COM
  193. Sterling Software, IMD           UUCP:     uunet!sparky!kent
  194. Phone:    (402) 291-8300         FAX:      (402) 291-4362
  195. Please send comp.sources.misc-related mail to kent@uunet.uu.net.
  196.